package cn.x.kindergarten.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.x.kindergarten.dao.ChildDao;
import cn.x.kindergarten.domain.Child;
import cn.x.kindergarten.service.ChildService;

@Service("childService")
public class ChildServiceImpl 	implements ChildService {
	@Autowired
	public ChildDao childDao;

	public Child query(Serializable id) {
		return this.childDao.query(id);
	}

	public void insert(Child child) {
		this.childDao.insert(child);
	}

	public void update(Child child) {
		this.childDao.update(child);
	}

	public void delete(Serializable id) {
		this.childDao.delete(id);
	}

	@Override
	public List<Child> queryAll() {
		return this.childDao.queryAll();
	}
	

}
